<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Station C</title>
    <%= javascript_include_tag :defaults %>
    
    <%= stylesheet_link_tag 'screen', :media => 'screen'%>
    <%= calendar_date_select_includes "stationc-calendar" %>
</head>

<body>

<div id="wrap">

	<div id="header">
			<% unless session[:member_id] -%>
			<div id="loginform">
				<% form_tag session_path do -%>
				Login <%= text_field_tag 'login' %>
				Password <%= password_field_tag 'password' %>
				<input name="commit" type="submit" value="Login" />
				<% end %>
				<a href="/members/new">Create a new account</a>
			</div>
			<% else -%>
			<ul id="utilnav">
				<li><a href="/">Home</a></li>
				<li><%= link_to('My profile', member_path(current_member)) %></li>
				<li><%= link_to('Edit profile', edit_member_path(current_member)) %></li>
				<li class="oups"><a href="mailto:service@station-c.com">Report problem</a></li>
				<li><a href="/sessions/destroy">Logout</a></li>
			</ul>
			<% end -%>

		<h1><a href="/">Station C</a></h1>
	</div>

	<div id="content">
		<% if flash[:success] -%>
			<div class="success"><%= flash[:success] %></div>
		<% end -%>
		<% if flash[:notice] -%>
			<div class="notice"><%= flash[:notice] %></div>
		<% end -%>
		<% if flash[:error] -%>
			<div class="error"><%= flash[:error] %></div>
		<% end -%>
		<%= yield  %>
	</div>
    
	<div id="footer">

	</div>

</div><!-- end of wrap -->


</body>
</html>